﻿using Marmat.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Marmat.Template.WinForm
{
    /// <summary>
    /// 编辑窗体默认路由
    /// </summary>
    internal class DefaultEditFormRoute : IEditFormRoute
    {
        public DefaultEditFormRoute() { }
        public DefaultEditFormRoute(IEditFormController controller, Control control)
        {
            this.Control = control;
            this.Controller = controller;
        }
        public IEditFormController Controller { get; set; }

        public Control Control { get; set; }

        public IEditFormController GetController()
        {
            return this.Controller;
        }

        public Control GetDataPanel()
        {
            return this.Control;
        }
    }
}
